import java.util.Scanner;

// 自定义异常类
class IllegalTriangleException extends Exception {
    public IllegalTriangleException(String message) {
        super(message);
    }
}

// 三角形类
class Triangle {
    private double side1, side2, side3;

    // 构造方法：验证三边是否能构成三角形
    public Triangle(double side1, double side2, double side3) throws IllegalTriangleException {
        if (!isValidTriangle(side1, side2, side3)) {
            throw new IllegalTriangleException("Invalid: " +side1+ "," +side2+ ","+side3);
        }
        this.side1 = side1;
        this.side2 = side2;
        this.side3 = side3;
    }

    // 验证三边是否满足三角形不等式
    private boolean isValidTriangle(double a, double b, double c) {
        return (a + b > c) && (a + c > b) && (b + c > a);
    }

    // 返回三角形的字符串描述
    @Override
    public String toString() {
        return "Triangle [side1=" + side1 + ", side2=" + side2 + ", side3=" + side3 + "]";
    }
}

// 主类
public class Main {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);

        // 输入三条边
  
        double s1 = input.nextDouble();
        double s2 = input.nextDouble();
        double s3 = input.nextDouble();

        try {
            // 尝试创建三角形对象
            Triangle triangle = new Triangle(s1, s2, s3);
            System.out.println(triangle); // 输出三角形信息
        } catch (IllegalTriangleException e) {
            // 捕获并输出异常信息
            System.out.println(e.getMessage());
        }
    }
}